package leetcode.code0083;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;
import leetcode.helper.tree.ListNode;

public abstract class Solution83 implements IDebug {

	public abstract ListNode deleteDuplicates(ListNode head);

	@Override
	public void debug1() {
		String str1 = "[1,1,2]";
		String str2 = "[1,2]";
		ListNode r = this.deleteDuplicates(ListNode.set(HelpDebug.str2array3(str1)));
		ListNode e = ListNode.set(HelpDebug.str2array3(str2));
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String str1 = "[1,1,2,3,3]";
		String str2 = "[1,2,3]";
		ListNode r = this.deleteDuplicates(ListNode.set(HelpDebug.str2array3(str1)));
		ListNode e = ListNode.set(HelpDebug.str2array3(str2));
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
